<?php include("includes/startPage.php"); checkLogin(0); ?>
<?php include('includes/header.php'); printHeader("Browse", "Nordic Sauna");?> <!-- (PageTitle, Banner Text) Prints <head>, opens <body> and prints banner -->
<?php include('includes/navigation.php'); printLeftMenu("browse"); ?> <!-- Navigation include, (currentpagename) -->

<?php OpenContentSection(); ?> 
	<!-- Content Starts -->
	<h2>Browse</h2>

	<table class="displayTable" width="100%" border="0" cellspacing="2" cellpadding="2">
            <?php
                $softwareList = ns_dao_software::GetApprovedSoftwareList();
                foreach ($softwareList as $key => $software)
                {
                    echo "<tr>";
                        echo "<td>";
                            echo '<a href="software.php?id='.$software->ID().'"><img src="../../content/softwareAvatar/'.$software->AvatarImage().'" width="80px" height="80px" border="0" >';
                        echo "</td>";
                        echo "<td valign='top'>";
                            echo "<a href='software.php?id=" . $software->ID() ."'>" . $software->Name() . "</a><br/>";
                            echo substr($software->Description(), 0, 250);
                            echo "... <a href='software.php?id=" . $software->ID() ."'>Read More</a>";
                        echo "</td>";
                        
                    echo "</tr>";
                }            
            ?>
	</table>
	<!-- Content Ends -->
<?php CloseContentSection(); ?> 
<?php include('includes/footer.php');?>




